package com.product.android.commonInterface.contact.parser;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;

import com.common.android.utils.parser.AbstractArrayParser;
import com.product.android.commonInterface.contact.RankInfo;



public class RankInfoListParser extends AbstractArrayParser<RankInfo>{

	@Override
	public ArrayList<RankInfo> parse(JSONArray array) throws JSONException {
		ArrayList<RankInfo> list = new ArrayList<RankInfo>();
		RankInfoParser parser = new RankInfoParser();
		for(int i = 0; i < array.length(); ++i){
			list.add(parser.parse(array.getJSONObject(i)));
		}
		return list;
	}

	@Override
	public JSONArray toJSONArray(List<RankInfo> group) throws JSONException {
		return null;
	}

}
